package com.lenovo.leos.letools.db;

public class FileUploadEntity {

	private int id;
	private String wholePath;
	private int startIndex;
	private int filelen;
	
	private int fileState;
	public static final int upload_new = 0;//新创建任务
	public static final int upload_continue = 1;//任务要续传
	public static final int upload_over = 2;//任务上传完成
	
	private String fileid;//上传文件在服务器端生成的id
	private String parentDirId;//上传到服务器上的目录id
	private String localTopDirWholePath;//上传文件夹用到，要上传文件夹的顶层全路径，为null时  上传的为一般文件
	private String cookie_token;
	private int isloading;
	private String uploadUrl;
	
	public FileUploadEntity(){}
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getWholePath() {
		return wholePath;
	}
	public void setWholePath(String wholePath) {
		this.wholePath = wholePath;
	}
	public int getStartIndex() {
		return startIndex;
	}
	public void setStartIndex(int startIndex) {
		this.startIndex = startIndex;
	}
	public int getFileState() {
		return fileState;
	}
	public void setFileState(int fileState) {
		this.fileState = fileState;
	}
	public int getFilelen() {
		return filelen;
	}
	public void setFilelen(int filelen) {
		this.filelen = filelen;
	}
	public String getParentDirId() {
		return parentDirId;
	}
	public void setParentDirId(String parentDirId) {
		this.parentDirId = parentDirId;
	}
	public String getLocalTopDirWholePath() {
		return localTopDirWholePath;
	}
	public void setLocalTopDirWholePath(String localTopDirWholePath) {
		this.localTopDirWholePath = localTopDirWholePath;
	}
	public String getFileid() {
		return fileid;
	}
	public void setFileid(String fileid) {
		this.fileid = fileid;
	}
	public String getCookie_token() {
		return cookie_token;
	}
	public void setCookie_token(String cookieToken) {
		cookie_token = cookieToken;
	}
	public int getIsloading() {
		return isloading;
	}
	public void setIsloading(int isloading) {
		this.isloading = isloading;
	}
	
	public String getUploadUrl() {
		return uploadUrl;
	}

	public void setUploadUrl(String uploadUrl) {
		this.uploadUrl = uploadUrl;
	}

	@Override
	public String toString(){
		return "id:"+id+"  wholepath:"+wholePath+" startIndex="+startIndex+" filelen:"+filelen
		+" fileState:"+fileState+" fileid:"+fileid+" parentDirId:"+parentDirId+
		" localTopDirWholePath:"+localTopDirWholePath+" cookie_token:"+cookie_token;
	}

}
